<?php
/**
 * Page Template
 * @version $Id: tpl_checkout_success_default.php 5407 2006-12-27 01:35:37Z drbyte $
 */
?>
<div id="main_center">
<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
  <div class="title_bg b_link" id="navblock"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
  <ul id="shipsteps">
	<?php if($_SESSION['navigation']->path[0]['get']['type'] == 'ec'){ ?>
    <li class="s1"><span></span><?php echo TEXT_SHOPPINT_STEP1; ?></li>
    <li class="s2"><span></span><?php echo TEXT_SHOPPINT_EC_STEP2; ?></li>
    <li class="s3"><span></span><?php echo TEXT_SHOPPINT_EC_STEP3; ?></li>
    <li class="current4 ppno"><span></span><?php echo TEXT_SHOPPINT_EC_STEP4; ?></li>
    
	<?php }else{ ?>

    <li class="s1"><span></span><?php echo TEXT_SHOPPINT_STEP1; ?></li>
    <li class="s2"><span></span><?php echo TEXT_SHOPPINT_WPS_STEP2; ?></li>
    <li class="s3"><span></span><?php echo TEXT_SHOPPINT_WPS_STEP3; ?></li>
    <li class="s4"><span></span><?php echo TEXT_SHOPPINT_WPS_STEP4; ?></li>
    <li class="current5"><span></span><?php echo TEXT_SHOPPINT_WPS_STEP5; ?></li>
	<?php } ?>
  </ul>
<?php if (DEFINE_CHECKOUT_SUCCESS_STATUS >= 1 and DEFINE_CHECKOUT_SUCCESS_STATUS <= 2) { ?>
<div id="checkoutSuccessMainContent" class="content">
  <?php  require($define_page);?>
</div>
<?php } ?>
<div class="success_box">
  <div><?php echo TEXT_YOUR_ORDER_NUMBER . '<strong class="red">'.zen_get_order_no($zv_orders_id).'</strong>'; ?></div>
  <div><?php echo TEXT_SEE_ORDERS;?></div>
  <div><?php echo TEXT_CONTACT_STORE_OWNER;?></div>
</div>

<!--bof -gift certificate- send or spend box-->
<?php
// only show when there is a GV balance
  //if ($customer_has_gv_balance ) {
?>
<!--<div id="sendSpendWrapper">
  <?php //require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?>
</div>-->
<?php
  //}
?>
<!--eof -gift certificate- send or spend box-->



<!--bof -product notifications box-->
<?php
/**
 * The following creates a list of checkboxes for the customer to select if they wish to be included in product-notification
 * announcements related to products they've just purchased.
 **/
    if ($flag_show_products_notification == true) {
?>
<fieldset  class="dark_border">
  <legend><b><?php echo TEXT_NOTIFY_PRODUCTS; ?></b></legend>
  <?php echo zen_draw_form('order', zen_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?>
  
  <?php foreach ($notificationsArray as $notifications) { ?>
  <?php echo zen_draw_checkbox_field('notify[]', $notifications['products_id'], true, 'id="notify-' . $notifications['counter'] . '"') ;?>
  <label class="checkboxLabel" for="<?php echo 'notify-' . $notifications['counter']; ?>"><?php echo $notifications['products_name']; ?></label>
  <br />
  <?php } ?>
  <div class="fr"><?php echo zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT); ?></div>
  </form>
</fieldset>
<?php
    }
?>
<!--eof -product notifications box-->


<!--bof -product downloads module-->
<?php
  if (DOWNLOAD_ENABLED == 'true') require($template->get_template_dir('tpl_modules_downloads.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_downloads.php');
?>
<!--eof -product downloads module-->
<!--bof logoff-->
<div class="pad_10px">
  <?php
  if (isset($_SESSION['customer_guest_id'])) {
    echo TEXT_CHECKOUT_LOGOFF_GUEST;
  } elseif (isset($_SESSION['customer_id'])) {
    echo TEXT_CHECKOUT_LOGOFF_CUSTOMER;
  }
?>
  <div class="fr"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_LOG_OFF , BUTTON_LOG_OFF_ALT); ?></a></div>
</div>
<!--eof logoff-->
<br class="clear" />

<?php  //require(DIR_WS_MODULES.zen_get_module_directory('sideboxes/recently_viewed.php'));?>
</div>